<!doctype html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src="./vue-3.5.13.dev.js"></script>
  </head>
  <body>
    <div id="app">
      <template v-for="message in messageList">
        <div>
          <span class="times no-copy">{{message.created_at}}</span>
          <p v-html="message.text_data"></p>
        </div>
      </template>
      <button @click="loadMore">加载更多</button>
    </div>
    <script>
      const app = Vue.createApp({
        data() {
          return {
            messageList: [{ created_at: '2023-08-25 01:00:00', text_data: 'java' }],
          }
        },
        methods: {
          async loadMore() {
            const message = { text_data: 'php' }
            this.messageList.push(message)
            message.created_at = '2023-08-25 02:00:00'
          },
        },
        async created() {},
      })
      app.mount('#app')
    </script>
  </body>
</html>
